/**
 * Created by bootdo.
 * 角色相关api
 */
import * as API from './'

export default {

  //查询获取table列表(通过page分页)
  findList: params => {
    return API.GET('/api-base/generator', params)
  },

  //查询获取一条role信息
  findById: id => {
    return API.GET('/api-base/generator/'+id)
  },

  add: params => {
    return API.POST(`/api-base/generator`, params)
  },
  update: (id, params) => {
    return API.PUT('/api-base/generator', params)
  },

  //单个删除role
  remove: id => {
    return API.DELETE(`/api-base/generator/${id}`)
  },

  //批量生成
  removeBatch: (ids) => {
    return API.DELETE(`/api-base/generator/batchCode/${ids}`)
  },
  //生成策略
  edit: id =>{
    return API.GET('/api-base/generator/edit',params)
  }

}
